<?php if (isset($this->posts) && count($this->posts) > 0) {

    foreach ($this->posts as $post) { ?>

        <a name="<?php echo $post['aliast']; ?>"></a>
        <h2><a href="/articulo/index/alias/<?php echo $post['aliast']; ?>/" title="<?php echo $post['title']; ?>"><?php echo $post['title']; ?></a></h2>

        <p class="post-info">Editado por <strong><?php echo $post['username']; ?></strong> | Categoría:  <a href="/categorias/categoria/id/<?php echo $post['categoryid']; ?>"><?php echo $post['categoryname']; ?></a></p>

        <p><?php echo $this->truncatePost($post['content']); ?></p>

        <p class="post-footer">
            <a href="/articulo/index/alias/<?php echo $post['aliast']; ?>/" class="readmore">Leer mas...</a> |
            <span class="date">July 20, 2008</span>

        </p>
        <!-- BEGIN Pagination -->
<?php
    }


    if (isset($this->paginator)) echo $this->partial ('partials/pagination.phtml', 'default', array ('paginator' => $this->paginator, 'url' => $this->urlPagination));

} else {
 ?>

    <a name="Error"></a>
    <h2><?php echo $this->error; ?></h2>

    <p>Intente mas tarde...</p>

<?php } ?>
